package com.syni.mdd.yhd.common.all.vo.rp.groupBuy;

import lombok.Data;

import javax.persistence.Column;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @className GetAllGroupBuy_v2Vo
 * @description TOO
 * @Author cfx
 * @DATE 2020/6/10 9:58
 * @VERSION 1.0
 **/
@Data
public class GetAllGroupBuy_v2Vo {
    private Integer id;


    private String groupImg;


    private String detailImg;


    private String detailWidth;


    private String detailHeight;

    private Integer businessId;

    private String businessName;

    private String groupName;

    private String useNumber;

    private Double groupValue;

    private Double groupPrice;

    private Double costPrice;

    private Integer useWay = 1;

    private String useTime;

    private Integer noUseDate;

    private Integer isRefundAnyTime;


    private Integer isOverdueRefund;


    private Integer isFreePackage;


    private Integer isUseTheRoom;

    private Integer isEnjoyOtherBen;

    private Integer needAppointment;

    private Integer limitBuyNum;

    private Integer limitOnceBuyNum;

    private Integer limitOnceUse;

    private String ortherServices;

    private Date expireTime;

    private String expireMonth;

    private Integer limitSellNum;

    private Integer groupTemplateId = 1;

    private Integer isExclusive = 0;

    private Integer isTimeLimit = 0;


    private Date startSellTime;

    private Date limitBuyTime;

    private Date useStartTime;

    private Date useEndTime;

    private Integer groupType = 0;

    private String discount = "9折";

    private BmsBusinessVo bmsBusiness;

    private Integer isShareGroup;

    private Double acrossCommision;

    private Double commision;

    private Integer isBusinessConsume;


    @Data
    public static class BmsBusinessVo{
        private String vendorName;
        private Integer id;
        private double distance = 0d;
        private Integer isHavingMoreGroupBuy = 0;
        private String logoUrl;
        private List<OtherGroupBuy> otherGroupBuys = new ArrayList<>();
        private String latitude;
        private String longitude;
    }

    @Data
    public static class OtherGroupBuy{
        private Integer id;
        private String groupImg;
        private String detailImg;
        private String groupName;
        private Double groupValue;
        private Double groupPrice;
        private Integer isRefundAnyTime;
        private Integer isOverdueRefund;
        private String discount;
        private Integer isShareGroup;
        private Double acrossCommision;
        private Double commision;
    }

}
